package com.gp.node;

import com.stock.StockData;

public class HighPrice extends IValue {
	
	private static final long serialVersionUID = 7855887178359531569L;

	@Override
	public double getValue(StockData stock) {
		return stock.getHightPrice();
	}
	
	@Override
	public INode createNew()  {
		return new HighPrice();
	}

	@Override
	public INode copy() {
		return new HighPrice();
	}
	
	@Override
	public String print(StockData stock) {
		return String.valueOf(stock.getHightPrice());
	}
	
	@Override
	public String print() {
		return " HighPrice ";
	}



}
